package nix.image;

import java.awt.image.BufferedImage;
import java.io.FileOutputStream;

import nix.commons.VerifyCode;

public class TestVerifyCode {

	/**
	 * @param args
	 * @throws Exception
	 * @throws
	 */
	public static void main(String[] args) throws Exception {

		VerifyCode vc = new VerifyCode();
		vc.setLine(4);
		BufferedImage image = vc.getImage();
		String text = vc.getText();
		VerifyCode.output(image, new FileOutputStream("D:/" + text + ".jpg"));
	}

}
